#define _CRT_SECURE_NO_WARNINGS 1
#include"RBTree.h"
#include"mySet.h"
#include"myMap.h"
#include<vector>

struct intoft
{
	int operator()(int data)
	{
		return data;
	}
};
void test()
{
	
	zkz::RBTree<int, int, intoft> t;
	t.Insert(5);
	t.Insert(2);
	t.Insert(3);
	t.Insert(6);
	t.Insert(9);

	zkz::RBTree_Iterator<int, int&, int*> it = t.end();
	//cout << *it << endl;
	it--;
	while (it != t.begin())
	{
		cout << *it << " ";
		it--;
	}
	cout << endl;
}


int main()
{
	zkz::test_set();
	zkz::test_map();
	return 0;
}